package com.longxi.tianjintianbao.ui.fragment.mian;

import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.longxi.tianjintianbao.R;
import com.longxi.tianjintianbao.ui.activity.main.MainActivity;
import com.longxi.tianjintianbao.ui.base.LazyFragment;
import com.longxi.tianjintianbao.ui.presenter.main.ContactFgPresenter;
import com.longxi.tianjintianbao.ui.view.main.IContactFgView;

/**
 * @创建者 Kuma
 * @描述 联系人
 */
public class ContactFragment extends LazyFragment<IContactFgView, ContactFgPresenter> implements IContactFgView {

    private final String TAG = "ContactFragment";

    @Override
    protected void init(View view) {
        mPresenter.setBar();
        mPresenter.initAdapter();
        mPresenter.getContactsList();
    }

    @Override
    public void initListener() {
        super.initListener();
    }

    @Override
    protected ContactFgPresenter createPresenter() {
        return new ContactFgPresenter((MainActivity) getActivity(), this);
    }

    @Override
    public void onDestroy() {
        mPresenter.onDestroy();
        super.onDestroy();
    }

    @Override
    protected int provideContentViewId() {
        return R.layout.fragment_contact;
    }

    @Override
    public RecyclerView getRvContent() {
        return mRvContent;
    }
}

